<?php
require_once('nav.php');
connect();
$sql_vt="select * from videotype";
$vt_list = fetch_array($sql_vt);

?>

<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <div class="container">
      <div class="row">
        <!--这里添加代码-->
         <div class="col-md-10 col-xs-9">
        <h1 class="text-center">视屏上传</h1>
        <form class="form-horizontal"   method="post" action="doVTReg.php" enctype="multipart/form-data">
          <!-- <div class="form-group">
            <label for="vid" class="col-md-2 col-xs-3 control-label">视屏编号</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="vid" placeholder="视屏编号" name="vid">
            </div>
          </div> -->

          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label"  for="videoname">
              视屏名称
            </label>
            <div class="col-md-10 col-xs-9">
              <input name="videoname" type="text" class="form-control" name="videoname" id="videoname">
            </div>
          </div>
          <div class="form-group">


         <label class="col-md-2 col-xs-3 control-label"  for="videotype">
              视屏类别
            </label>
 
    <select name="tid">
      <option>==请选择==</option>
      
      <?php
        foreach($vt_list as $one)
        {
          echo '<option value="'.$one['tid'].'">'.$one['typename'].'</option>';
        }
      ?>
    </select>
  </td>
</tr>
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label"   for="intro ">
              视屏简介
            </label>
            <div class="col-md-10 col-xs-9">
              <input name="intro" type="text" class="form-control"  id="intro">
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label"   for="uploaddate">
              更新时间
            </label>
            <div class="col-md-10 col-xs-9">
              <input name="uploaddate" type="date" class="form-control"  id="uploaddate">
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="uploadadmin">
              更新者
            </label>
            <div class="col-md-10 col-xs-9">
              <input name="uploadadmin" type="text" class="form-control"  id="uploadadmin">
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label"  for="pic">视屏图片</label>
            <div class="com-md-10 col-xs-9">
              <input name="pic" type="file" id="pic">
            </div>
          </div>

          <div class="form-group">

            <div class="col-md-10 col-xs-9 col-md-offset-2 col-xs-offset-3">
              <input type="submit" value="添加">
              <input type="reset" value="重置">
            </div>
          </div>

        </form>
      </div>
    </div>

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="js/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>

<?php
require_once('footer.php')


?>
